require("dotenv").config();
const { ethers } = require("hardhat");
console.log("Private Key:", process.env.PRIVATE_KEY);
console.log("Sepolia RPC URL:", process.env.SEPOLIA_RPC_URL);
async function getOwner() {
  let [owner] = await ethers.getSigners();
  console.log("owner" + owner.address);
  const balance = await ethers.provider.getBalance(owner.address);
  console.log("owner ETH 余额: " + ethers.formatEther(balance));
  return owner;
}

getOwner();
